tools/libxc: Fix error checking for xc_get_{cpu, node}map_size() callers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 11 Dec 2013 15:47:42 +0000 (15:47 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 18 Dec 2013 11:09:58 +0000 (11:09 +0000)
commit492b0688f58c7c0150712f09677a6c140fdccd96
tree372cb74853ed119b2b3a5a1a9257ea55148e4301
parent54984ac03af709ce122d53c5a1936a2fecc15625
tools/libxc: Fix error checking for xc_get_{cpu, node}map_size() callers

c/s 2e82c18cd850592ae9a1f682eb93965a868b5f2f changed the error returns of
xc_get_{cpu,node}map_size() to now include returning -1.  This invalidated the
error checks from callers, which expected 0 to be the only error case.

Coverity ID: 1135907 1135908 1135909 1135910 1135911 1135912 1135913 1135914

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: George Dunlap <george.dunlap@eu.citrix.com>
tools/libxc/xc_cpupool.c
tools/libxc/xc_domain.c
tools/libxc/xc_misc.c